<template>
  <div class="phone-login">
    <el-form label-width="70px" :model="account" :rules="rulesPhone" class="demo-ruleForm" status-icon>
      <el-form-item label="手机号" prop="name" size="large">
        <el-input type="number" v-model="account.name" placeholder="请输入手机号" />
      </el-form-item>
      <el-form-item label="验证码" prop="verificationCode" size="large">
        <div class="layout-sb">
          <el-input type="number" v-model="account.verificationCode" placeholder="请输入验证码" />
          <el-button type="primary">验证码</el-button>
        </div>
      </el-form-item>
    </el-form>
  </div>
</template>
<script lang="ts">
import { defineComponent, reactive, ref } from "vue"
import { rulesPhone } from "../config/accout-config"
export default defineComponent({
  setup() {
    const account = reactive({
      name: "",
      verificationCode: ""
    })

    return {
      account,
      rulesPhone
    }
  }
})
</script>
<style lang="less" scoped>
.el-button {
  margin-left: 20px;
}
</style>
